<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .item{
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: #000;
        }
        .box{
            background-color: #999;
            margin:100px auto;
            width: 250px;
            height: 250px;
            border-radius: 10px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .item:nth-child(2){
            align-self: center;
        }
        .item:nth-child(3){
            align-self: flex-end;
        }
    </style>
</head>
<body>
    <div class="box">
        <span class="item"></span>
        <span class="item"></span>
        <span class="item"></span>
    </div>
</body>
<script>
    async function fn1(){
        console.log(111);
        await fn2()
        console.log(333);
    }
     function fn2(){
        console.log(222);
    }
    fn1()
    console.log(444);
    setTimeout(() => {
        console.log(555);
    }, 0);
    new Promise((resolve,reject)=>{
        console.log(666);
        resolve(777)
    }).then(res=>{
        console.log(res);
    })
</script>
</html>